﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SPapersRemindList.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.PublicModel.SPapersRemindList" %>


<form id="pagerForm" method="post" action="PublicModel/SPapersRemindList.aspx">
<input type="hidden" name="YearCarefulDateFrom" value="<%=YearCarefulDateFrom %>" />
<input type="hidden" name="YearCarefulDateTo" value="<%=YearCarefulDateTo %>" />
<input type="hidden" name="IDNO" value="<%=IDNO %>" />
<input type="hidden" name="orderField" value="<%=orderField %>" />
<input type="hidden" name="orderDirection" value="<%=orderDirection %>" />
</form>
<form id="form1" runat="server" method="post" action="PublicModel/SPapersRemindList.aspx" onsubmit="return navTabSearch(this);">
<div class="pageHeader">
    <div class="searchBar">
        <table class="searchContent">
            <tr>
                <td>
                    请选择年审日期:
                </td>
                <td>                   
                   从<input name="YearCarefulDateFrom" type="text" value="<%=YearCarefulDateFrom %>"  class="date"/>
                   到<input name="YearCarefulDateTo" type="text" value="<%=YearCarefulDateTo %>"  class="date"/>
                </td>
                <td>
                    证件号码:
                </td>
                <td>
                    <input name="IDNO" type="text" value="<%=IDNO %>" />
                </td>
                <td>
                    <div class="subBar">
                        <ul>
                            <li>
                                <div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
                            </li>
                        </ul>
                    </div>
                </td>
            </tr>
        </table>
    </div>
</div>
<div class="pageContent sortDrag">
    <div class="panelBar">
        <ul class="toolBar">
          <% if (HasPower(IHISCETeim.Web.Permission.新增))
             {%>
            <li><a class="add" href="PublicModel/SPapersRemindAdd.aspx" target="dialog" rel="SPapersRemindAdd"  title="新增证件" max=false  mask=true  maxable=false  minable=false  resizable=false drawable=true  width="820" height="320" ><span>新增证件</span></a></li>
           <%} %>
            <% if (HasPower(IHISCETeim.Web.Permission.删除))
               {%>
            <li><a class="delete" href="sysAjaxDone.ashx?ajaxmethod=deletespapersremind&id={sid_user}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
           <%} %>
           <% if (HasPower(IHISCETeim.Web.Permission.修改))
              {%>
            <li><a class="edit" href="PublicModel/SPapersRemindEdit.aspx?ID={sid_user}" rel="SPapersRemindEdit" target="dialog" title="修改证件" max=false  mask=true  maxable=false  minable=false  resizable=false drawable=true  width="820" height="320" ><span>修改证件</span></a></li>
          <%} %>
        </ul>
    </div>
    <asp:repeater id="rpMenu" runat="server">
        <HeaderTemplate>
        <table class="table" width="100%" layouth="115">
        <thead>
            <tr  >
                <th width="80">
                    部门
                </th>                
                <th width="100">
                    员工
                </th> 
                <th width="100" >
                    证件号码
                </th>
                <th width="100" >
                    证件名称
                </th> 
                <th width="80" orderField="RushDate" class="asc">
                    办证日期
                </th>       
                <th width="80" orderField="YearCarefulDate" class="asc">
                    年审日期
                </th>
                <th width="80" orderField="ExpiryDate" class="asc">
                    有效日期
                </th>
                 <th width="70" >
                    提前提醒(天)
                </th> 
                <th></th>
            </tr>
        </thead>
        <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr target="sid_user" rel="<%# Eval("ID") %>">
                <td><%# Eval("Department ")%></td>
                <td><%# Eval("EmployeeName")%></td>
				<td><%# Eval("IDNO")%></td>
				<td><%# Eval("IDName")%></td>
                <td><%# Eval("RushDate") is DBNull?"": Convert.ToDateTime(Eval("RushDate")).ToString("yyyy-MM-dd")%></td>
                <td><%# Eval("YearCarefulDate") is DBNull ? "" : Convert.ToDateTime(Eval("YearCarefulDate")).ToString("yyyy-MM-dd")%></td>
                <td><%# Eval("ExpiryDate") is DBNull ? "" : Convert.ToDateTime(Eval("ExpiryDate")).ToString("yyyy-MM-dd")%></td>
                <td><%# Eval("LeadDays")%></td>
                <td>
                    <%# GetYearCarefulUrl(Eval("YearCarefulDate"), Eval("ID"))%>
                </td>
			</tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody>
         </table>
        </FooterTemplate>
    </asp:repeater>
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
               <%=SetnumPerPage() %>
            </select>
            <span>条，共<%=TotalCount%>条</span>
        </div>
        <div class="pagination" targettype="navTab" totalcount="<%=TotalCount%>" numperpage="<%=numPerPage %>"
            pagenumshown="10" currentpage="<%=pageNum %>">
        </div>
    </div>
</div>
</form>